package com.java1412.web.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author java1412
 * @since 2025-05-16 14:08
 */
@Configuration
public class ApiWebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/api/login")
                .setViewName("login");
        registry.addViewController("/api/index")
                .setViewName("index");
        registry.addViewController("/api/register")
                .setViewName("register");
        registry.addViewController("/api/attestation")
                .setViewName("attestation");
    }

}
